package cn.picclife.mwx.manager.sys.service;

import cn.picclife.mwx.common.web.base.BaseResult;
import cn.picclife.mwx.manager.sys.model.bo.ApprovalInfo;
import cn.picclife.mwx.manager.sys.model.bo.PageCount;

public interface ApprovalService {

    BaseResult applySubmit(ApprovalInfo approvalInfo);

    ApprovalInfo queryApprovalInfo(ApprovalInfo approvalInfo);

    PageCount queryByReqDetail(ApprovalInfo approvalInfo,String deptNo);

    ApprovalInfo queryByOptName(ApprovalInfo approvalInfo);

    BaseResult updateApprovalInfo(ApprovalInfo approvalInfo);
    
    /**
	 * 将用户自前端输入的申请理由保存进对应的申请记录
	 * @param approvalInfo
	 * @return
	 * @throws Exception
	 */
	public BaseResult updateApplyInfo(ApprovalInfo approvalInfo) throws Exception;
}
